package com.dome.base.service;

import javax.servlet.http.HttpServletRequest;

public interface SubmitTokenService {
    /**
     * 生成token
     * @return java.lang.String
     * @since 1.0.0
     * @author jinjie.chen
     * 2020/6/1 14:56
     */
    String createToken();
    /**
     * 校验token
     * @param request 请求request
     * @return boolean
     * @since 1.0.0
     * @author jinjie.chen
     * 2020/6/1 14:56
     */
    boolean checkToken(HttpServletRequest request);

    /**
     * 删除token
     * @return java.lang.String
     * @since 1.0.0
     * @author jinjie.chen
     * 2020/6/1 14:56
     */
    long delToken(String key);
}
